package com.lanyou.esb.cook.proxy.redis.persistent.impl;

import com.lanyou.esb.cook.proxy.entity.TraceLog;
import com.lanyou.esb.cook.proxy.redis.persistent.base.ListBasePersistentRedis;
import com.lanyou.esb.cook.proxy.redis.proxy.impl.TraceLogJedisProxy;

/**
 * 持久化跟踪日志信息：将REDIS中的日志记录转存到数据中
 *
 * @author Davey.wu
 */
public class TraceLogPersistentRedis extends ListBasePersistentRedis<TraceLog> {
	/** Redis操作代理 **/
	private TraceLogJedisProxy jedisProxy;

	public TraceLogPersistentRedis() {
		// 每5分钟执行一次
		this.setCron("0 0/1 * * * ?");
		this.setName("TraceLogPersistentRedis");
		this.setGroup("TraceLogPersistentRedis");
		this.setJobClass(this.getClass());
	}

	@Override
	public TraceLogJedisProxy getJedisProxy() {
		return jedisProxy;
	}

	public void setJedisProxy(TraceLogJedisProxy jedisProxy) {
		this.jedisProxy = jedisProxy;
	}

}
